package com.season.seasonStudy.javase.j_013_innerClass;

//外部类
class Out {
	private int age = 12;

	// 内部类
	class In {
		public void print() {
			System.out.println(age);
		}
	}
}

public class Demo {
	public static void main(String[] args) {
		Out.In in = new Out().new In();
		in.print();
		// 或者采用下种方式访问
		/*
		 * Out out = new Out(); Out.In in = out.new In(); in.print();
		 */
	}
}